package com.antcom.antread.antreaddatacrawl.himalayaData.dao.repository;

import com.antcom.antread.antreaddatacrawl.himalayaData.entity.BookInfo;
import feign.Param;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

/**
 * Dao
 *
 * @Author 中国蚂蚁技术有限公司
 * @create 2020/11/28 23:37
 */
@Repository
public interface BookInfoRepository extends JpaRepository<BookInfo, String> {


    Optional<BookInfo> findById(@Param("book_id") String bookId);

    List<BookInfo> findByBookNameLike(@Param("bookName") String bookName);

}
